<template>
	<view>
		<songList  :songsListData='songsListData'></songList>
		<!-- // 底部播放器 -->
		<text>\n\n\n\n\n\n</text>
		<view class="zaudio">
			<my-zaudio theme="theme3" ref='a'></my-zaudio>
		</view>
	</view>
</template>

<script>
	// 导入组件
	import songList from '@/comments/songsList.vue'
	export default {
		// 注册组件
		components:{
			// songList：songList
			songList,
			
		},
		
		data() {
			return {
				title:'每日推荐歌曲',
				songsListData:[]
			}
		},
		created() {
			this.getSongsday()
		},
		methods: {
			
			// 获取每日推荐
			async getSongsday(){
				
				const {data:res} = await this.$request({
					url:'/recommend/songs',
				
				})
				this.songsListData = res.data.dailySongs
				
				console.log(res)
				console.log('每日歌单')
			},
		}
	}
</script>

<style>

</style>
